"""Added is_subscription to order model

Revision ID: 9aea7a999c19
Revises: f6f8ba8ab89e
Create Date: 2023-03-04 18:18:49.908562

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "9aea7a999c19"
down_revision = "f6f8ba8ab89e"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "order",
        sa.Column("is_subscription", sa.Boolean(), server_default="0", nullable=True),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("order", "is_subscription")
    # ### end Alembic commands ###
